package com.zh.domain.vo.message;

import com.zh.domain.entity.Message;
import com.zh.domain.vo.user.UserVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(value = "MessageVo", description = "消息视图")
public class MessageVo extends Message implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("接收人id")
    private Integer receiverId;
    @ApiModelProperty("发送人")
    private UserVO sender;
    @ApiModelProperty("接收人")
    private UserVO receiver;
}
